package com.zjitc.dao;

import com.zjitc.model.Order;
import com.zjitc.model.OrderItem;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/24 14:38
 * @description:
 */
public interface OrderDao {

  void orderPayment(
      @Param("oid") String oid,
      @Param("name") String name,
      @Param("phone") String phone,
      @Param("address") String address
  );

  void createOrderItem(OrderItem orderItem);

  void createOrder(Order order);

  List<Order> findOrder(Integer uid);

  List<OrderItem> findOrderItems(String oid);

  void deleteOrder(String oid);

  void updateState(String oid);

}
